package com.cskaoyan.service.admin.goods;

import com.cskaoyan.bean.MarketGoods;
import com.cskaoyan.bean.bo.admin.goods.CreatBO;
import com.cskaoyan.bean.bo.admin.goods.UpdeleteGoodsBO;
import com.cskaoyan.bean.common.BasePageInfo;
import com.cskaoyan.bean.common.CommonData;
import com.cskaoyan.bean.vo.admin.goods.CatAndBrandVO;
import com.cskaoyan.bean.vo.admin.goods.GoodsDetailVo;

/**
 * @author Mr.Tang
 * @since 2022/09/06 23:27
 */
public interface GoodsService {


    /**
     * 显示所有商品
     * @param basePageInfo
     * @param goodsId
     * @param goodsSn
     * @param name
     * @return
     */
    CommonData selectGoodsInfo(BasePageInfo basePageInfo,Integer goodsId,Integer goodsSn,String name);

    /**
     * 商品新增界面的显示
     *
     */
    CatAndBrandVO selectCateAndBrand();


    /**
     * 新增商品
     * @param creatBO
     */
    void insertCreatBO(CreatBO creatBO);


    /**
     * 删除商品
     * @param marketGoods
     */
    void deleteForGoods(MarketGoods marketGoods);

    /**
     * 更新商品
     * @param updeleteGoodsBO
     */
    void updateForGoods(UpdeleteGoodsBO updeleteGoodsBO);


    /**
     * @description: TODO 查询商品详情
     * @date: 2022/9/8 23:32
     * @param: [id]
     */
    GoodsDetailVo detail(Integer id);
}
